<form name="form_admin" method="post" action="<?php echo formAction('updatestatus')?>" >
<table width="100%" border="0" cellpadding="2" cellspacing="0">
	<tr>
		<td height="10" colspan="2"></td>
	</tr>
	<tr>
		<td valign="top" width="18%">
            <div class='listmoduleleft'>
                <?php echo $listLocationRoot ?>
            </div>
		</td>
		<td>
		<table width="100%" cellpadding="4" cellspacing="1" id="tblsort">
			<tr class="headtb" nodrag="true" nodrop="true">
                <td width="5%">#</td>
                <td width="5%"><?php echo inputCheckAll()?></td>
                <td width="40%" ><?php echo _NAME?></td>
                <td width="10%" ><?php echo Status?></td>
                <td width="20%"><?php echo _ACTIONS?></td>
				<td>&nbsp;</td>
			</tr>
		<?php
		foreach($locations as $i => $location)
		{
		?>
    		<tr>
                <td><input class="ordertext" id="listorder_<?php echo $i?>" name="listorder[]"
					value="<?php echo getOrderList($i)?>"/>
                </td>
                <td align="center"><?php echo inputCheck($location['iId'])?></td>
                <td>
    				<?php echo linkAction('edit',$location['cName'],'id='.$location['iId'])?>
                    <input type="hidden" name="listid[]" value="<?php echo $location['iId']?>" />
    			</td>
                <td align="center">
                    <select name="liststatus[]">
                        <?php echo liststatus($location['iStatus'])?>
                    </select>
                </td>
    			<td align="center">
                    <?php echo linkAction('video',Videos,'id='.$location['iId'])?> 
                    - 
                    <?php echo linkAction('photos',Photos,'id='.$location['iId'])?> 
                    - 
    				<?php echo linkAction('edit',_EDIT,'id='.$location['iId'])?>
    				-
                    <?php echo linkAction('delete',_DELETE,'id='.$location['iId'])?>
    			</td>
    			<TD></TD>
    		</tr>
		<?php
		}//end for
		if(count($locations)==0)
		{
		?>
			<tr style=" height:20px;">
				<td width="3%" colspan="3" align=center><font color="Red"><b> Not found Location !</b></font></td>
			</tr>

		<?php
		}
		?>
		</table>
        <?php  echo $show_page; ?>
		</td>
	</tr>
</table>
</form>
<script type="text/javascript">
(new TableDnD).init("tblsort");
</script>